package Stringclass;

import java.util.Scanner;

public class class6work {
		public static void main(String[] args) {
			Scanner cin = new Scanner(System.in);
			String str = cin.next();
			char[] cs = str.toCharArray();
			for (int i = 0; i < cs.length; i++) {
				if(Character.isUpperCase(cs[i])||Character.isDigit(cs[i])) {
					System.out.print(cs[i]);
				}
			}
		}
}
